package lzm.service;

import lzm.dao.StudentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service(value = "studentService")
public class StudentServiceImpl implements lzm.service.IStudentService {
    @Autowired
    private StudentDao studentDao;
    @Value(value = "abc")
    private String value;
    @Value(value = "${prop.url}")
    private String url;


    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public void add() {
        System.out.println("studentService->add()");
        studentDao.add();
    }
}
